package vanScheduling;

import db.DriverDAO;
import db.ServiceDAO;
import db.VehicleDAO;

public class Event {

    private int id;
    private Service service;
    private int serviceID;
    private Driver driver;
    private int driverID;
    private Vehicle vehicle;
    private int vehicleID;
    private String notes;

    public Event(){}

    public Event(int id, int serviceID, int driverID, int vehicleID, String notes) {
        this.id = id;
        this.serviceID = serviceID;
        this.driverID = driverID;
        this.vehicleID = vehicleID;
        this.notes = notes;

        this.service = ServiceDAO.getServiceByID(serviceID);
        this.driver = DriverDAO.getDriverByID(driverID);
        this.vehicle = VehicleDAO.getVehicleByID(vehicleID);
    }

    public int getId() {
        return id;
    }

    public Service getService() {
        return service;
    }

    public void setService(Service service) {
        this.service = service;
    }

    public Driver getDriver() {
        return driver;
    }

    public void setDriver(Driver driver) {
        this.driver = driver;
    }

    public Vehicle getVehicle() {
        return vehicle;
    }

    public void setVehicle(Vehicle vehicle) {
        this.vehicle = vehicle;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public int getDriverID() {
        return driverID;
    }

    public void setDriverID(int driverID) {
        this.driverID = driverID;
    }

    public int getServiceID() {
        return serviceID;
    }

    public void setServiceID(int serviceID) {
        this.serviceID = serviceID;
    }

    public int getVehicleID() {
        return vehicleID;
    }

    public void setVehicleID(int vehicleID) {
        this.vehicleID = vehicleID;
    }
}
